Do not use lock_count of GtkAccelGroup directly in GtkWidget
authorChristian Dywan <christian@twotoasts.de>
Fri, 23 Oct 2009 00:54:07 +0000 (02:54 +0200)
committerJavier Jardón <jjardon@gnome.org>
Sun, 2 May 2010 23:51:19 +0000 (01:51 +0200)
gtk/gtkwidget.c

index f3c40bdb9eef7e259ebc678f4e0fdbde6e66e066..c97a56164e840c702dff895b54356b7197cdadb9 100644 (file)
@@ -4543,7 +4543,7 @@ _gtk_widget_get_accel_path (GtkWidget *widget,
 
   apath = g_object_get_qdata (G_OBJECT (widget), quark_accel_path);
   if (locked)
-    *locked = apath ? apath->accel_group->lock_count > 0 : TRUE;
+    *locked = apath ? gtk_accel_group_get_is_locked (apath->accel_group) : TRUE;
   return apath ? g_quark_to_string (apath->path_quark) : NULL;
 }